package pro.cherish.nettyJpa.device;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pro.cherish.nettyJpa.domain.Device;

@Service
public class DeviceServiceImpl implements DeviceService {

    @Autowired
    private DeviceDao deviceDao;

    @Override
    public Device saveDevice(Device device) {
        Device savedDevice = deviceDao.save(device);
        return savedDevice;
    }
}
